﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>紧急求购列表-三帝贸易网</title>
<link href="/css/body.css" rel="stylesheet" type="text/css" />
<link href="/css/head_2.css" rel="stylesheet" type="text/css" />
<link href="/caigou/css/main.css" rel="stylesheet" type="text/css" />
<link href="/css/foot.css" rel="stylesheet" type="text/css" />
</head>
<?php
include("../inc/conn.inc");
$url="list.php";
$thepage=$_GET['page']?intval($_GET['page']):1;
$maxpage=20;
?>
<body>
<?php include("../inc/head_top.php")?>
<div class="top1 topside6">
<div style="float:left;width:388px;"><a href="/"><img src="../images/logo.gif" width="388" height="58" border="0"/></a></div>
<div class="onl"></div>
</div>
<div class="onl"></div>
  <div id="mian" class="topside6 sideyellow1">
    <div class="content size14"><br />
  <div class="title2 b">紧急求购列表</div>
  <div>
<script type="text/javascript"><!--
google_ad_client = "pub-2924453545159453";
/* 728x90, 创建于 10-12-28 */
google_ad_slot = "0069335756";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
  <br />
  <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
    <tbody>
	<?php
$sql="select * from caigou where c_cl=1 order by id desc limit ".($thepage-1)*$maxpage.",$maxpage";
$rs=mysql_query($sql);
$i=1;
while($row=mysql_fetch_array($rs)){
	?>
      <tr>
        <td width="80%" bgcolor="#FFFFFF"><a href="/jjcaigou/<?=$row['id']?>.html" target="_blank" class="link_1"><?=mb_substr($row[c_title],0,16,'utf-8')?></a></td>
        <td width="20%" bgcolor="#FFFFFF"><?=date("Y-m-d",strtotime($row[addtime]))?></td>
      </tr>
<?php
$i++;
}
$rs2=mysql_query("select count(id) from caigou where c_cl='1'");
$totalrecord=mysql_result($rs2,0);
mysql_free_result($rs2);
$totalpage=ceil($totalrecord/$maxpage);
if($totalpage>0){
?>
        <tr>
          <td height="18" colspan="2" align="center" bgcolor="#FFFFFF"><script language="javascript">
<!--
function showPageLink(sUrl,iPage,iCount){
	var i;
	i=Math.max(1,iPage-1);
	document.write("<a href=\"" + sUrl + "1\">«</a> ");
	document.write("<a href=\"" + sUrl + i + "\">上一页</a> ");
	for(i=Math.max(1,iPage-8);i<iPage;i++){
		document.write("<a href=\""+sUrl + i + "\"><b>" + i + "</b></a> ");
	}
	document.write("<font color='#ff3333'><b>" + iPage + "</b></font> ");
	for(i=iPage+1;i<=Math.min(iCount,iPage+8);i++){
		document.write("<a href=\""+sUrl + i + "\"><b>" + i + "</b></a> ");
	}
	i=Math.min(iCount,iPage+1);
	if(iCount>iPage+8) document.write("<span style='font-size:8px'>···</span> ");
	document.write("<a href=\"" + sUrl + i + "\">下一页</a> ");
	document.write("<a href=\"" + sUrl + iCount + "\">»</a> ");
}
showPageLink("<?=$url?>?page=",<?=$thepage?>,<?=$totalpage?>);
//-->
</script></td>
        </tr><?php }?>
    </tbody>
  </table>
  <div>
<script type="text/javascript"><!--
google_ad_client = "pub-2924453545159453";
/* 728x90, 创建于 10-12-28 */
google_ad_slot = "0069335756";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
  <br />
    </div>
  </div>
<?php include("../inc/foot.php");?>
</body>
</html>

<script type="text/javascript">/*120*270，创建于2010-12-18*/ var cpro_id = 'u319758';</script><script src="http://cpro.baidu.com/cpro/ui/f.js" type="text/javascript"></script>